package can.bishe.modules.exam.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import can.bishe.common.utils.PageUtils;
import can.bishe.common.utils.Query;

import can.bishe.modules.exam.dao.ExamOptionDao;
import can.bishe.modules.exam.entity.ExamOptionEntity;
import can.bishe.modules.exam.service.ExamOptionService;


@Service("examOptionService")
public class ExamOptionServiceImpl extends ServiceImpl<ExamOptionDao, ExamOptionEntity> implements ExamOptionService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ExamOptionEntity> page = this.page(
                new Query<ExamOptionEntity>().getPage(params),
                new QueryWrapper<ExamOptionEntity>()
        );

        return new PageUtils(page);
    }

}
